<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
      if(session('?Admin_id'))
      {
          $this->display();
        
      }
        else {
                 redirect(URL.'login', 0, '页面跳转中...');
             }
    }
     public function Welcome(){
        $this->display();
    }
}